#ifndef _DISPLAY_H_
#define _DISPLAY_H_

#define DRAG_NONE    0
#define DRAG_BG      1
#define DRAG_ITEM    2
#define DRAG_VICTIM  3
#define DRAG_MONSTER 4
#define DRAG_PLAYER  5

typedef struct
{
    int xpos;
    int ypos;
    
    int xrel;
    int yrel;
    
    int objid; // object pointed
    
    int pressed;
    int drag;
    
} mouse_t;

void mainloop();
void renderscreen();
void initdisplay();

extern SDL_Surface *background;
extern SDL_Surface *screen;
extern SDL_Rect bgoffset;

extern mouse_t mouse;

#endif